package cn.fl.ref.fribaseinfo.controller;

import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import cmm.comm.facade.livecheck.api.ICmmLiveChannelRApiService;
import cmm.comm.facade.livecheck.dto.CmmLiveChannelRDTO;
import cmm.comm.facade.livecheck.dto.LiveChannelRParamDTO;
import cmm.mid.core.framework.dto.BaseParamDTO;
import cmm.mid.core.framework.dto.DataResultDTO;
import cmm.mid.core.framework.page.DataResultVO;
import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.ListPageVO;
import cmm.mid.core.framework.page.Pager;
import cmm.web.core.framework.controller.BaseController;
import cn.cmm.base.framework.constant.BaseConstant;
import cn.cmm.base.framework.constant.BaseExceptionConstant;
import cn.cmm.base.framework.exception.BaseException;
import cn.cmm.base.framework.utils.BaseLogUtils;
import cn.cmm.base.framework.utils.CollectionUtils;
import cn.cmm.base.framework.utils.StringUtils;
import cn.fl.framework.base.context.CurrentThreadContext;
import cn.fl.framework.constant.DictionaryConstant;
import cn.fl.project.constant.PrjBscInfoConstant;
import cn.fl.ref.fribaseinfo.service.IFriBaseInfoService;
import cn.fl.ref.fribaseinfo.service.IFundRasInsLimService;
import cn.fl.ref.fribaseinfo.transform.FriBaseInfoVOTransform;
import cn.fl.ref.fribaseinfo.vo.FriBaseInfoVO;
import cn.fl.ref.fribaseinfo.vo.FundRasInsLimVO;
import cn.fl.system.api.ISysInsCfgInfoApiService;
import cn.fl.system.condition.SysInsCfgInfoQueryCondition;
import cn.fl.system.constant.SysInsCfgInfoConstant;
import cn.fl.system.dto.SysInsCfgInfoDTO;
import fl.ref.crbaseinfo.constant.CrBaseInfoConstant;
import fl.ref.fribaseinfo.condition.FriBaseInfoQueryCondition;
import fl.ref.fribaseinfo.condition.FundRasInsLimQueryCondition;
import fl.ref.fribaseinfo.constant.FriBaseInfoConstant;
import fl.ref.fribaseinfo.dto.FriBaseInfoDTO;

/**
 * @Description: 资管机构管理
 */
@Controller
@RequestMapping("/rfbase/fundInsMgr")
public class FundInsMgrController extends BaseController {

	private static final Logger logger = LoggerFactory.getLogger(FundInsMgrController.class);

	@Autowired
	private IFriBaseInfoService friBaseInfoService;
	@Autowired
	private ICmmLiveChannelRApiService cmmLiveChannelRApiService;
	@Autowired
	private IFundRasInsLimService fundRasInsLimService;
	@Autowired
    private ISysInsCfgInfoApiService sysInsCfgInfoApiService;
	
	/**
	 * 到列表页面
	 */
	@RequestMapping(value = "/toListPage.do")
	public ModelAndView toListPage() {
		ModelAndView view = new ModelAndView("rfbase/fribaseinfo/fundInsMgr");
		// 授信状态
		List<KeyValueVO> crStList = friBaseInfoService.getKvList(CrBaseInfoConstant.CR_BSC_INFO_CR_ST);
		view.addObject("crStList", crStList);
		// 融资机构类型
		List<KeyValueVO> insStsList = friBaseInfoService.getKvList(FriBaseInfoConstant.FUND_RAS_INS_BASE_INFO_INS_STS);
		view.addObject("insStsList", insStsList);
		return view;
	}

	

	/**
	 * 初始化列表
	 * 
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "/initList.do")
	@ResponseBody
	public Object initList(HttpServletRequest request) {
		String currentPage = request.getParameter("page");
		String pageSize = request.getParameter("pagesize");
		String fundRasInsNm = request.getParameter("fundRasInsNm");// 融资机构名称
		String insCode = request.getParameter("insCode");// 机构编码
		String insUseCd = request.getParameter("insUseCd"); // 机构用途
		String buOrgCds = request.getParameter("orgCd"); // 所属事业部
		String prjTypCds = request.getParameter("prjTypeCd"); // 支持的项目类型
		
		Pager page = new Pager();
		if (StringUtils.isNotEmpty(currentPage)) {
			page.setCurrentPage(Integer.parseInt(currentPage));
		}

		if (StringUtils.isNotEmpty(currentPage)) {
			page.setEveryPage(Integer.parseInt(pageSize));
		}

		boolean isHaveQC = false;//是否存在其他查询条件
		FriBaseInfoQueryCondition qc = new FriBaseInfoQueryCondition();
		if (StringUtils.isNotEmpty(fundRasInsNm)) {
			qc.setFundRasInsNm(fundRasInsNm);
			isHaveQC = true;
		}
		if (StringUtils.isNotEmpty(insCode)) {
			qc.setInsCode(insCode);
			isHaveQC = true;
		}
		if (StringUtils.isNotEmpty(buOrgCds)) {
			qc.setBuOrgCds(Arrays.asList(buOrgCds.split(";")));
			isHaveQC = true;
		}
		if (StringUtils.isNotEmpty(prjTypCds)) {
			qc.setPrjTypCds(Arrays.asList(prjTypCds.split(";")));
			isHaveQC = true;
		}
		//默认查询资管
		if (StringUtils.isNotEmpty(insUseCd)) {
			qc.setInsUseCd(insUseCd);
		}else if(!isHaveQC) {//没有其他查询条件,则默认查询资管
			qc.setInsUseCd("2");
		}
		
		qc.setSysCd(CurrentThreadContext.getCurrentSysCd());
		qc.setOrgCd(CurrentThreadContext.getCurrentOrgCd());
		page.setCondition(qc);

		Pager pager = this.friBaseInfoService.searchListPage(page);
		List<FriBaseInfoDTO> list = (List<FriBaseInfoDTO>) pager.getResultList();
		List<FriBaseInfoVO> voList = FriBaseInfoVOTransform.toVOList(list);


		ListPageVO<FriBaseInfoVO> listPage = new ListPageVO<FriBaseInfoVO>(voList, pager.getTotalCount());

		BaseLogUtils.info(logger, "initList", "查询数据完成. DATA:" + JSONObject.toJSONString(page), CurrentThreadContext.getCurrentUserName());
		return listPage;
	}

	//支持的项目类型
	@RequestMapping(value = "/getPrjTypeCd.do")
	@ResponseBody
	public Object getPrjTypeCd() {
		List<KeyValueVO> list = friBaseInfoService.getKvList(FriBaseInfoConstant.FUND_RAS_INS_BASE_INFO_PRJ_TYPE);
		return list;
	}
	
	
	//所属事业部
	@RequestMapping(value = "/getOrgCd.do")
	@ResponseBody
	public Object getOrgCd() {
		List<KeyValueVO> list = friBaseInfoService.getKvList(FriBaseInfoConstant.FUND_RAS_INS_BASE_INFO_INS_ORG);
		return list;
	}
	/**
	 * 到资管添加机构列表页面
	 */
	@RequestMapping(value = "/toAddNewListPage.do", method = { RequestMethod.GET })
	public ModelAndView toAddListPage(HttpServletRequest request, HttpServletResponse response) {
		logger.info("到添加机构列表页面.");
		ModelAndView view = new ModelAndView("rfbase/fribaseinfo/friBaseInfoAddNewList");
		//机构用途
		List<KeyValueVO> insUseCdList = friBaseInfoService.getKvList(FriBaseInfoConstant.FUND_RAS_INS_BASE_INFO_INS_USE_CD);
		view.addObject("insUseCdList", insUseCdList);
		return view;
	}
	/**
	 * 到资管机构修改页面
	 */
	@RequestMapping(value = "/toModifyNew.do", method = { RequestMethod.GET })
	public ModelAndView toModifyNew(HttpServletRequest request, HttpServletResponse response) {
		logger.info("到机构修改页面");
		ModelAndView view = new ModelAndView("rfbase/fribaseinfo/friBaseInfoAddNew");
		//机构用途
		List<KeyValueVO> insUseCdList = friBaseInfoService.getKvList(FriBaseInfoConstant.FUND_RAS_INS_BASE_INFO_INS_USE_CD);
		view.addObject("insUseCdList", JSON.toJSONString(insUseCdList));
		// 所属事业部
		List<KeyValueVO> buOrgList = friBaseInfoService.getKvList("FNC0012");
		view.addObject("buOrgList",  JSON.toJSONString(buOrgList));
		// 支持的项目类型
		List<KeyValueVO> prjTypList = friBaseInfoService.getKvList("FNC0013");
		view.addObject("prjTypList",  JSON.toJSONString(prjTypList));
		
		String id = request.getParameter("id");
		view.addObject("id", id);
		
		//获取活体类型列表
		BaseParamDTO baseParamDTO = new BaseParamDTO();
		baseParamDTO.setSysCd(CurrentThreadContext.getCurrentSysCd());
		baseParamDTO.setChannelCd("");// TODO 渠道代码（沟通后先不传）
		baseParamDTO.setServiceCd("");//TODO 服务代码（沟通后先不传）
		baseParamDTO.setFrontCd("");//TODO 前端代码（沟通后先不传）
		// REQ-12803   业务线 
		List<KeyValueVO> bussLineList = friBaseInfoService.getKvList(FriBaseInfoConstant.FUND_BUSSINESS_LINE);
		view.addObject("bussLineList",JSON.toJSONString(bussLineList));
		//REQ-13452 上报征信融担主体
		List<KeyValueVO> reportZtList = friBaseInfoService.getKvList(FriBaseInfoConstant.FUND_REPORT_ZT);
		view.addObject("reportZtList", reportZtList);
		//REQ-15110 抵押方式 
		List<KeyValueVO> mTgWayZtList = friBaseInfoService.getKvList(FriBaseInfoConstant.CODE_MTG_WAY_CD);
		view.addObject("mTgWayZtList", JSON.toJSONString(mTgWayZtList));
		
		BaseLogUtils.newLogger("获取活体类型列表开始baseParamDTO:" + JSON.toJSONString(baseParamDTO)).info();
		DataResultDTO dataResultDTO = cmmLiveChannelRApiService.searchLiveCdList(baseParamDTO);
		BaseLogUtils.newLogger("获取活体类型列表结束dataResultDTO:" + JSON.toJSONString(dataResultDTO)).info();
		if(dataResultDTO != null && dataResultDTO.getSuccess() == BaseConstant.IS_YESNO_YES) {
			List<Map<String,String>> liveTypeList = (List<Map<String,String>>)dataResultDTO.getData();
//			if (CollectionUtils.isNotEmpty(liveTypeList)) {
//				List<KeyValueVO> kvList = new ArrayList<KeyValueVO>();
//				for (Map<String,String> liveType : liveTypeList) {
//					KeyValueVO keyValueVO = new KeyValueVO();
//					keyValueVO.setKey(liveType.get("code"));
//					keyValueVO.setValue(liveType.get("codeNm"));
//					kvList.add(keyValueVO);
//				}
//				view.addObject("liveTypeList",JSON.toJSONString(kvList));
//			}
			view.addObject("liveTypeList",liveTypeList);
		}
		
		
		if(StringUtils.isNotBlank(id)) {
			FriBaseInfoVO friBaseInfoVO = friBaseInfoService.selectById(Long.parseLong(id), CurrentThreadContext.CURRENT_SYS_CD,
					CurrentThreadContext.CURRENT_ORG_CD);
			BaseLogUtils.newLogger("friBaseInfoVO:" + JSON.toJSONString(friBaseInfoVO)).info();
			
			if(friBaseInfoVO != null) {
				//1、查询资管机构活体配置
				BaseLogUtils.newLogger("查询资管机构活体配置开始friBaseInfoVO.getInsCode():"+friBaseInfoVO.getInsCode()+",baseParamDTO:" + JSON.toJSONString(baseParamDTO)).info();
				dataResultDTO = cmmLiveChannelRApiService
						.searchCmmLiveChannelRByChannelCd(baseParamDTO,friBaseInfoVO.getInsCode());
				BaseLogUtils.newLogger("查询资管机构活体配置结束dataResultDTO:" + JSON.toJSONString(dataResultDTO)).info();
				if(dataResultDTO != null && dataResultDTO.getSuccess() == BaseConstant.IS_YESNO_YES) {
					CmmLiveChannelRDTO cmmLiveChannelRDTO = (CmmLiveChannelRDTO)dataResultDTO.getData();
					view.addObject("cmmLiveChannelRDTO", cmmLiveChannelRDTO);
				}

				///2、查询是否上报征信配置
				//只针对浦发、上农(select * from sys_ins_cfg_info where  cfg_cd='C003';1.是 0.否)
				if(PrjBscInfoConstant.PRJ_INS_CODE_SPD.equals(friBaseInfoVO.getInsCode()) //浦发
						|| PrjBscInfoConstant.PRJ_INS_CODE_SHNS.equals(friBaseInfoVO.getInsCode())) {//上农
					//开始查配置项
					SysInsCfgInfoQueryCondition sysInsCfgInfoQC = new SysInsCfgInfoQueryCondition();
					sysInsCfgInfoQC.setCfgCd(SysInsCfgInfoConstant.CODE_INS_CREDIT_CFG);
					sysInsCfgInfoQC.setInsCode(friBaseInfoVO.getInsCode());
					sysInsCfgInfoQC.setInsId(friBaseInfoVO.getId());
					
					BaseLogUtils.newLogger("查询是否上报征信配置sysInsCfgInfoQC:" + JSON.toJSONString(sysInsCfgInfoQC)).info();
					List<SysInsCfgInfoDTO> sysInsCfgInfoDTOList = sysInsCfgInfoApiService.searchSysInsCfgInfoList(sysInsCfgInfoQC);
					BaseLogUtils.newLogger("查询是否上报征信配置sysInsCfgInfoDTOList:" + JSON.toJSONString(sysInsCfgInfoDTOList)).info();
			         if(CollectionUtils.isNotEmpty(sysInsCfgInfoDTOList)){
			            for(SysInsCfgInfoDTO sysInsCfgInfoDTO : sysInsCfgInfoDTOList){
			            	view.addObject("sysInsCfgInfoDTO", sysInsCfgInfoDTO);
			            	break;
			            }
			        }
				}
			}
		}
		
		
		return view;
	}
	/**
	 * 资管机构修改
	 * 
	 * @param request
	 * @return
	 * @throws Exception
	 */
	@RequestMapping(value = "/modifyNew.do", method = { RequestMethod.GET, RequestMethod.POST })
	@ResponseBody
	public Object modifyNew(HttpServletRequest request, HttpServletResponse response) throws Exception {
		String id = request.getParameter("id");
		String fundRasInsNm = request.getParameter("fundRasInsNm");// 融资机构名称
		String insCode = request.getParameter("insCode");// 机构缩写
		String prjTypCds = request.getParameter("prjTypCds");// 融资机构类型
		String buOrgCds = request.getParameter("buOrgCds");// 附件
		String isZx = request.getParameter("isZx");// 是否上报征信
		String zgText = request.getParameter("zgText");// 是否为ABS
		String insUseCd = request.getParameter("insUseCd");// 机构用途
		String isValid = request.getParameter("isValid");// 是否开启活体验证,是否有效：0否，1是
		String liveType = request.getParameter("liveType");//活体类型
		String isEveryChk = request.getParameter("isEveryChk");// 是否每次合同签署都做活体校验：0否，1是
		String bussinessLine = request.getParameter("bussinessLine");//业务线
		String isReportZx = request.getParameter("isReportZx");//是否上报征信(融担主体) 
		String reportZt = request.getParameter("reportZt");//上报征信融担主体 
		String isVisitFee = request.getParameter("isVisitFee");//是否支持家访费
		String mTgWay = request.getParameter("mTgWay");//抵押方式 MTG0002
		
		DataResultVO result = new DataResultVO(BaseConstant.IS_YESNO_YES, "修改成功!");
		try {
			// 验证
			if (StringUtils.isEmpty(fundRasInsNm)) {
				throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, "融资机构名称不能为空!");
			}
			if (StringUtils.isEmpty(insCode)) {
				throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_600, "机构编码不能为空!");
			}
			FriBaseInfoQueryCondition condition=new FriBaseInfoQueryCondition();
			condition.setInsCode(insCode);
			List<FriBaseInfoVO> list=friBaseInfoService.searchList(condition);
			if (list!=null) {
				if (list.size()>1||(list.size()==1 && !list.get(0).getId().toString().equals(id))) {				
					throw new BaseException(BaseExceptionConstant.BASE_EXCEPTION_CODE_606, "机构编码不能重复!");
				}
			}
			FriBaseInfoVO entity = new FriBaseInfoVO();
			entity.setId(Long.valueOf(id));
			entity.setFundRasInsNm(fundRasInsNm);
			entity.setInsCode(insCode);
			entity.setPrjTypCds(prjTypCds);
			entity.setBuOrgCds(buOrgCds);
			entity.setIsZx(isZx);
			entity.setInsUseCd(insUseCd);
			entity.setZgText(zgText);
			entity.setBussinessLine(bussinessLine);//业务线
			entity.setReportZt(reportZt);//融担主体
			entity.setIsReportZx(isReportZx);//是否上报征信(融担主体)
			entity.setMdfUsrId(CurrentThreadContext.getCurrentUserId()); // 修改人
			entity.setMdfTm(new Date()); // 修改时间
			entity.setIsVisitFee(isVisitFee);//是否支持家访费
			entity.setmTgWay(mTgWay);
			this.friBaseInfoService.modify(entity);
			
			//新增或修改资管机构活体配置
			BaseParamDTO baseParamDTO = new BaseParamDTO();
			baseParamDTO.setSysCd(CurrentThreadContext.getCurrentSysCd());
			baseParamDTO.setChannelCd("");// TODO 渠道代码?
			baseParamDTO.setServiceCd("");//TODO 服务代码?
			baseParamDTO.setFrontCd("");//TODO 前端代码?
			
			LiveChannelRParamDTO liveChannelRParamDTO = new LiveChannelRParamDTO();
			
			liveChannelRParamDTO.setChannelCd(entity.getInsCode());//合同签署渠道（即机构编码）
			liveChannelRParamDTO.setIsValid(Integer.parseInt(isValid));//是否有效：0否，1是
			liveChannelRParamDTO.setLiveCd(liveType);//活体类型
			liveChannelRParamDTO.setIsEveryChk(Integer.parseInt(isEveryChk));//是否每次合同签署都做活体校验：0否，1是
			
			BaseLogUtils.newLogger("新增或修改资管机构活体配置开始liveChannelRParamDTO:"+JSON.toJSONString(liveChannelRParamDTO)+",baseParamDTO:" + JSON.toJSONString(baseParamDTO)).info();
			DataResultDTO dataResultDTO = cmmLiveChannelRApiService
					.addCmmLiveChannelR(baseParamDTO,liveChannelRParamDTO);
			BaseLogUtils.newLogger("新增或修改资管机构活体配置结束dataResultDTO:" + JSON.toJSONString(dataResultDTO)).info();
			if(dataResultDTO != null && dataResultDTO.getSuccess() == BaseConstant.IS_YESNO_YES) {
				result.setSuccess(BaseConstant.IS_YESNO_YES);
				result.setInfo("更新成功!");
			}else {
				result.setSuccess(BaseConstant.IS_YESNO_NO);
				result.setInfo("新增或修改资管机构活体配置失败!"+dataResultDTO.getInfo());
			}
			
		
			///2、修改是否上报征信配置
			//只针对浦发、上农(select * from sys_ins_cfg_info where  cfg_cd='C003';1.是 0.否)
			
			if(entity != null && StringUtils.isNotBlank(isZx)) {
				if(PrjBscInfoConstant.PRJ_INS_CODE_SPD.equals(entity.getInsCode()) //浦发
						|| PrjBscInfoConstant.PRJ_INS_CODE_SHNS.equals(entity.getInsCode())) {//上农
					
					//开始查配置项
					SysInsCfgInfoQueryCondition sysInsCfgInfoQC = new SysInsCfgInfoQueryCondition();
					sysInsCfgInfoQC.setCfgCd(SysInsCfgInfoConstant.CODE_INS_CREDIT_CFG);
					sysInsCfgInfoQC.setInsCode(entity.getInsCode());
					sysInsCfgInfoQC.setInsId(entity.getId());
					
					BaseLogUtils.newLogger("查询是否上报征信配置sysInsCfgInfoQC:" + JSON.toJSONString(sysInsCfgInfoQC)).info();
					List<SysInsCfgInfoDTO> sysInsCfgInfoDTOList = sysInsCfgInfoApiService.searchSysInsCfgInfoList(sysInsCfgInfoQC);
					BaseLogUtils.newLogger("查询是否上报征信配置sysInsCfgInfoDTOList:" + JSON.toJSONString(sysInsCfgInfoDTOList)).info();
			         if(CollectionUtils.isNotEmpty(sysInsCfgInfoDTOList)){//修改
			            for(SysInsCfgInfoDTO sysInsCfgInfoDTO : sysInsCfgInfoDTOList){
			            	if(!isZx.equals(sysInsCfgInfoDTO.getCfgVal())) {//值不相等再修改
			            		
			            		SysInsCfgInfoDTO sysInsCfgInfoDTONew = new SysInsCfgInfoDTO();
			            		sysInsCfgInfoDTONew.setId(sysInsCfgInfoDTO.getId());
			            		sysInsCfgInfoDTONew.setCfgVal(isZx);
			            		
			            		BaseLogUtils.newLogger("查询是否上报征信配置-修改sysInsCfgInfoDTONew:" + JSON.toJSONString(sysInsCfgInfoDTONew)).info();
			            		sysInsCfgInfoApiService.modifySysInsCfgInfo(sysInsCfgInfoDTONew);
			            	}
			            	break;
			            }
			        }else {//新增暂时不考虑
			        	
			        }
				}
			}
			
			
			BaseLogUtils.info(logger, "modify", "修改数据,id[" + id + "].", CurrentThreadContext.getCurrentUserName());
		} catch (BaseException ex) {
			ex.printStackTrace();
			result.setSuccess(BaseConstant.IS_YESNO_NO);
			result.setInfo(ex.getMessage());
			BaseLogUtils.info(logger, "modify", "修改数据失败,id[" + id + "]." + ex.getMessage(), CurrentThreadContext.getCurrentUserName());
		} catch (Exception ex) {
			ex.printStackTrace();
			result.setSuccess(BaseConstant.IS_YESNO_NO);
			result.setInfo("系统错误");
			BaseLogUtils.error(logger, "modify", "修改数据失败,id[" + id + "]." + ex.getMessage(), CurrentThreadContext.getCurrentUserName());
		}
		return result;
	}
	/**
	 * 跳转到 设备限额管理 页面
	 */
	@RequestMapping(value = "/toFundInsLimPage.do", method = { RequestMethod.GET })
	public ModelAndView toFundInsLimPage(HttpServletRequest request, HttpServletResponse response) {
		logger.info("到设备限额管理.");
		String dataId = request.getParameter("id");//金融机构id
		if(StringUtils.isEmpty(dataId)) {
			throw new BaseException(BaseExceptionConstant.COMMON_0001, "金融机构id不能为空!");
		}
		ModelAndView view = new ModelAndView("rfbase/fribaseinfo/fundInsLimModify");
		List<KeyValueVO> list2 = friBaseInfoService.getKvList(DictionaryConstant.CODE_PRJ_TYPE_CD );
		view.addObject("prjTypCds", list2);
		view.addObject("dataId", dataId);
		FundRasInsLimQueryCondition qc = new FundRasInsLimQueryCondition();
		if (StringUtils.isNotEmpty(dataId)) {
			qc.setInsId(dataId);
		}
		List<FundRasInsLimVO> list = (List<FundRasInsLimVO>) this.fundRasInsLimService.searchList(qc);
		view.addObject("limArrayJSON", JSONArray.toJSONString(list));	
		BaseLogUtils.newServiceLogger("toFundInsLimPage===arr:" +JSONObject.toJSONString(list)).info();
		return view;
	}
		
		
}
